//
//  UIViewController+Ex.h
//  BaseProject
//
//  Created by 陈家将 on 16/9/23.
//  Copyright © 2016年 szteyou. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIViewController (Ex)

/** 只有取消按钮 */
- (void)alertWithSytle:(UIAlertControllerStyle)style title:(NSString *)title message:(NSString *)msg cancleTitle:(NSString *)cTitle;
/** 只有确认按钮 */
- (void)alertWithSytle:(UIAlertControllerStyle)style title:(NSString *)title message:(NSString *)msg sureTitle:(NSString *)sTitle sure:(void (^)())sure;

//MARK:同时具备取消和确认按钮
/** 同时具备取消和确认按钮 */
- (void)alertWithSytle:(UIAlertControllerStyle)style title:(NSString *)title message:(NSString *)msg sureTitle:(NSString *)sTitle cancleTitle:(NSString *)cTitle sure:(void (^)())sure cancle:(void (^)())cancle;

/** 三个按钮,建议用sheet */
- (void)alertWithSytle:(UIAlertControllerStyle)style title:(NSString *)title message:(NSString *)msg sureTitle:(NSString *)sTitle cancleTitle:(NSString *)cTitle otherTitle:(NSString *)oTitle sure:(void (^)())sure cancle:(void (^)())cancle other:(void (^)())other;

@end
